﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Outsourcing.Infatructrue
{
    public class BaseRepository<T> : IBaseRepository<T> where T : class
    {
        private readonly SCDBcontext db;

        public BaseRepository(SCDBcontext db)
        {
            this.db = db;
        }

        public IQueryable<T> GetAll()
        {
            return db.Set<T>().AsQueryable();
        }
    }
}
